home *** CD-ROM | disk | FTP | other *** search
- /* Copyright © 1994 George R. Cossey */
- /* mmHeaders Type definitions
-
- Name: mmHeaders.h
- Function: Precompile headers for Marksman™ code.
- History: 1/16/94 Original by George Cossey
-
- */
-
- #define OBSOLETE
-
- #define SystemSevenOrLater 1
-
-
- #pragma pointers_in_D0 // required for c-style toolbox glue function: c2pstr and p2cstr
- // the inverse operation (pointers_in_A0) is performed at the end ...
-
- #include <MixedMode.h>
-
-
- #define PtoCstr p2cstr
- #define CtoPstr c2pstr
- #define CtoPString c2pstr
- #define PtoCString p2cstr
-
- #define Length(s) (*(unsigned char *)(s))
- #define topLeft(r) (((Point *) &(r))[0])
- #define botRight(r) (((Point *) &(r))[1])
-
- #define dOpened 0x0020 // DA/DRVR flags
- #define dRAMBased 0x0040
- #define drvrActive 0x0080
- #define dReadEnable 0x0100
- #define dWritEnable 0x0200
- #define dCtlEnable 0x0400
- #define dStatEnable 0x0800
- #define dNeedGoodBye 0x1000
- #define dNeedTime 0x2000
- #define dNeedLock 0x4000
-
- long GetCurrentA5(void)
- ONEWORDINLINE(0x200D);
-
- long SetCurrentA4(void);
- #pragma parameter __D0 SetA4(__D0)
- long SetA4(long)
- ONEWORDINLINE(0xC18C);
- long GetCurrentA4(void)
- ONEWORDINLINE(0x200C);
-
- pascal void UnloadA4Seg(void *); // for code resources DRVRS etc.
-
-
- #include <values.h>
- #include <types.h>
- #include <quickdraw.h>
- #include <fonts.h>
- #include <events.h>
- #include <controls.h>
- #include <windows.h>
- #include <menus.h>
- #include <textedit.h>
- #include <dialogs.h>
- #include <desk.h>
- #include <scrap.h>
- #include <toolutils.h>
- //MW must add LowMem for certain functions
- #include <LowMem.h>
- #include <memory.h>
- #include <segload.h>
- #include <files.h>
- #include <osutils.h>
- #include <osevents.h>
- #include <diskinit.h>
- #include <packages.h>
- #include <traps.h>
- //MW added assembler header (to allow inline assembly)
- #include <Assembler.h>
- #include <StandardFile.h>
- #include <Lists.h>
- #include <Resources.h>
- #include <Errors.h>
-
- #include <AppleEvents.h> /* AppleEvent routines */
- #include <GestaltEqu.h> /* Gestalt definitions */
- #include <Printing.h> /* Printing routines */
-
- #include <Folders.h> /* FindFolder routines */
-
- #pragma pointers_in_A0 // required for c-style toolbox glue function: c2pstr and p2cstr
-
- /* ======================================================= */
- /* ======================================================= */
-